import re
pattern = re.compile('OrderGateWayImpl\.[a-zA-Z]+\s+error:')
str = 'OrderGateWayImpl.updateOrderWhenAllotGoodsDone error:服务调用失败,traceId:ffffff8d1aa22d427ccdd42447050139,data:DistributionReq(tradeFrom=STORE, orderUpdateDetail=OrderUpdateDto(siteId=1, buyerId=1538020002, saOrderId=1218642110538202, odOrderId=1218642109516702, operatorId=1304045792, beforeOrderStatus=PAID, orderStatus=PREPARED, orderLogUpdateList=[OrderLogUpdateDto(siteId=1, content=订单SA1218642110538202已配货, status=PREPARED, type=0, createdBy=1304045792)], orderItemUpdateList=[OrderItemUpdateDto(id=288517302, snList=13031/12165652, insuranceMobileSn=, imei=)]), waybillUpdateDetail=[])'
print(pattern.search(str))